package com.example.base.system.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 字典类别
 * </p>
 *
 * @author xiong
 * @since 2024-02-19
 */

@Data
@ApiModel(description = "字典类别")
@TableName("sys_dic_category")
public class SysDicCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * 主键id
    */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;
    /**
    * 类别名称
    */
    @ApiModelProperty(value = "类别名称")
    private String categoryName;
    /**
    * 类别代码
    */
    @ApiModelProperty(value = "类别代码")
    private String categoryNo;
    /**
    * 父id
    */
    @ApiModelProperty(value = "父id")
    private Integer pid;
    /**
    * 创建时间
    */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createtime;
    /**
    * 更新时间
    */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updatetime;
    /**
    * 逻辑删除
    */
    @TableLogic
    @ApiModelProperty(value = "逻辑删除")
    private Integer deleted;

    /**
     * 字典分类子类
     */
    @ApiModelProperty(value = "字典分类子类")
    @TableField(exist = false)
    private List<SysDicCategory> children;

        

}
